$OpenBSD: patch-repmgr_c,v 1.1.1.1 2013/08/10 16:07:02 landry Exp $
for WEXITSTATUS()
--- repmgr.c.orig	Thu Nov 22 21:18:27 2012
+++ repmgr.c	Thu Nov 22 21:19:48 2012
@@ -30,6 +30,8 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 
 #include "log.h"
 #include "config.h"
